<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
	<link rel="stylesheet" href="../css/login/bootstrap.min.css">
	<link rel="stylesheet" href="../css/login/font-awesome.css?v=4.4.0">
	<link rel="stylesheet" href="../css/login/animate.css">
	<link rel="stylesheet" href="../css/login/style.css">
	<link rel="stylesheet" href="../css/login/login.css">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
    </script>
</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-12">
                <form method="post" id="submitForm" action="<%=basePath%>user/login">
                    <h4>考勤登录:</h4><span style="color:red">${msg}</span>
                    <input type="text" class="form-control" name="username" placeholder="用户名" />
                    <input type="password" class="form-control m-b" name="password" placeholder="密码" />
                    <button id="submithBtn" class="btn btn-success btn-block">登录</button>
                </form>
            </div>
        </div>
    </div>
</body>
<script src="<%=basePath%>js/jquery-2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$("submithBtn").click(function(){
	$('#submitForm').submit();
});
</script>
</html>
